import request from '@/api/request'

export function getBlog(data) {
  return request({
    url: '/admin/blog?id='+data,
    method: 'get'
  })
}

export function saveBlog(data) {
  return request({
    url: '/admin/blog/save',
    method: 'post',
    data
  })
}

export function updateBlog(data) {
  return request({
    url: '/admin/blog/update',
    method: 'post',
    data
  })
}

export function categorys(data) {
  return request({
    url: '/categorys',
    method: 'get'
  })
}

export function labels(data) {
  return request({
    url: '/labels',
    method: 'get'
  })
}

